<div class="column prepend-1 span-5 append-1 sidebar">
  <h4 class="actions">Actions</h4>
  <ul class="actions">
    <% if logged_in? %>
      <% if current_user.member_of? @discipline %>
        <%= link_to_action 'Start a new discussion', new_discipline_discussion_path(@discipline), :method => :get %>
        <%= link_to_action 'Contribute a new article', new_discipline_article_path(@discipline), :method => :get %>
        <%= link_to_action 'Invite members', invite_discipline_path(@discipline), :method => :get %>
      <% else %>
        <%= link_to_action 'Join this discipline', new_discipline_membership_path(@discipline) %>
      <% end %>
    </ul>
    <% unless current_user.member_of? @discipline %>
        <p class="actions">... and you'll be able to <strong>review</strong> and <strong>comment on</strong> articles!</p>
    <% end %>
    <% else %>
        <li class="multiple"><%= link_to '&#187; Create an account', signup_url %> or <%= link_to 'login', login_url %></li>
    </ul>
    <p class="actions">... and you'll be able to <strong>join disciplines</strong>, or even create new ones!</p>
    <% end %>
    <% if logged_in? and current_user.member_of? @discipline %>
      <p class="actions subtle"><%= link_to 'Leave this discipline', leave_discipline_path(@discipline), :method => :delete %></p>
    <% end %>
</div>
